package edu.sctu.practice.class02.xuqianlan.test.test10;

/**
 * Created by lenovo on 2015/10/16.
 */
public class Addition {

    public void add(int n1, int n2) {
        int addtion = n1 + n2;
        System.out.println("n1+n2=" + addtion);
    }

    public void add2(Long n1, Long n2) {
        Long addtion = n1 + n2;
        System.out.println("n1+n2=" + addtion);
    }

    public void add3(float n1, float n2) {
        float addtion = n1 + n2;
        System.out.println("n1+n2=" + addtion);
    }

    public void add4(double n1, double n2) {
        double addtion = n1 + n2;
        System.out.println("n1+n2=" + addtion);
    }

    public void add5(String n1, String n2) {
        String addtion = n1 + n2;
        System.out.println("n1+n2=" + addtion);
    }


}
